package com.nanhai.buddhist.college.module.collegebase.convert.teacherteachers;


import com.nanhai.buddhist.college.framework.common.pojo.PageResult;
import com.nanhai.buddhist.college.module.collegebase.api.teacher.dto.TeacherRespDTO;
import com.nanhai.buddhist.college.module.collegebase.controller.admin.teacherteachers.vo.*;
import com.nanhai.buddhist.college.module.collegebase.dal.dataobject.teacherteachers.TeacherTeachersDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 教师管理 Convert
 *
 * @author AKai
 */
@Mapper
public interface TeacherTeachersConvert {

    TeacherTeachersConvert INSTANCE = Mappers.getMapper(TeacherTeachersConvert.class);

    TeacherTeachersDO convert(TeacherTeachersCreateReqVO bean);

    TeacherTeachersDO convert(TeacherTeachersUpdateReqVO bean);

    TeacherTeachersRespVO convert(TeacherTeachersDO bean);

    List<TeacherTeachersRespVO> convertList(List<TeacherTeachersDO> list);
    List<TeacherInfoRespVO> convertList04(List<TeacherTeachersDO> list);

    PageResult<TeacherTeachersRespVO> convertPage(PageResult<TeacherTeachersDO> page);

    List<TeacherTeachersExcelVO> convertList02(List<TeacherTeachersDO> list);

    List<TeacherRespDTO> convertList03(List<TeacherTeachersDO> teacherTeachersList);

    TeacherRespDTO convertDTO(TeacherTeachersDO bean);
}
